Constructs the lock tracking object
            
            
            
 Syntax
Syntax
| Visual Basic (Declaration) |  | 
|---|
| Public Function New() | 
| C# |  | 
|---|
| public DebugLocking<T>() | 
 Example
Example
Library/Library.Test/LockingTests/TestDebugLocking.cs
             | C# |  Copy Code | 
|---|
| using (DebugLocking lck = new DebugLocking<IgnoreLocking>())
    Assert.IsFalse(lck.CaptureStack);
using (DebugLocking lck = new DebugLocking<IgnoreLocking>(true, 0, 0, false, 0))
    Assert.IsTrue(lck.CaptureStack); | 
| VB.NET |  Copy Code | 
|---|
| Using lck As DebugLocking = New DebugLocking(Of IgnoreLocking)()
    Assert.IsFalse(lck.CaptureStack)
End Using
Using lck As DebugLocking = New DebugLocking(Of IgnoreLocking)(True, 0, 0, False, 0)
    Assert.IsTrue(lck.CaptureStack)
End Using | 
 Requirements
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
 See Also
See Also